#include "CpLog.h"
#include "CpPoint.h"

ClassImp(CpPoint);

//________________________________________________________________________________________________________________
CpPoint::CpPoint(const Double_t& x, const Double_t& y, const Double_t& z,const Double_t& vx, const Double_t& vy, const Double_t& vz, const Double_t &t): TObject()
{
//
// Constructor
//
   SetPosition(x, y, z);
   SetVelocity(vx, vy, vz);
   SetTime(t);
}

//________________________________________________________________________________________________________________
CpPoint::~CpPoint()
{
//
// Destructor.
//
}

void CpPoint::Print(Option_t* /*option*/) const
{
  CpInfo(Form("xyz = [%e,%e,%e] v(x,y,z)=(%e,%e,%e) at t=%f", fPos[0], fPos[1], fPos[2], fVel[0],fVel[1],fVel[2],fTime));
}


void CpPoint::SetPosition(const Double_t& x, const Double_t& y, const Double_t& z)
{
   fPos[0] = x;
   fPos[1] = y;
   fPos[2] = z;
}

void CpPoint::SetVelocity(const Double_t& vx, const Double_t& vy, const Double_t& vz)
{
   fVel[0] = vx;
   fVel[1] = vy;
   fVel[2] = vz;
}
